<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:fragment="head(title)">
    <!--title传参  把其他页面参数传过来-->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title th:replace="${title}">博客详情</title>
    <link rel="stylesheet" href="../static/semantis-ui/semantic.min.css" th:href="@{/semantis-ui/semantic.min.css}">
    <link rel="stylesheet" href="../static/lib/prism/prism.css" th:href="@{/lib/prism/prism.css}">
    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.17.1/themes/prism.min.css">-->
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="../static/lib/editormd/css/editormd.min.css" th:href="@{/lib/editormd/css/editormd.min.css}">

    <!--th后从static开始写目录-->
    <script src="../static/semantis-ui/jquery-3.6.0.min.js" th:src="@{/semantis-ui/jquery-3.6.0.min.js}"></script>
    <script src="../static/semantis-ui/semantic.min.js" th:src="@{/semantis-ui/semantic.min.js}"></script>
    <script src="../static/lib/editormd/editormd.min.js" th:src="@{/lib/editormd/editormd.min.js}"></script>
    <!--代码高亮-->
    <script src="../static/lib/prism/prism.js" th:src="@{/lib/prism/prism.js}"></script>
    <!--<script src="https://cdn.jsdelivr.net/npm/prismjs@1.17.1/prism.js"></script>-->


</head>


<body>

<nav th:fragment="menu(n)" class="ui segment inverted attached segment me-padded-tb-mini bg">
    <!--放在一个container中-->
    <div class="ui container ">
        <!--里面的菜单   stackable适应手机-->
        <div class="ui inverted stackable menu bg">
            <h2 class="ui teal header item ">HJ&nbsp&nbspblog</h2>
            <a href="#" th:href="@{/}" class="m-item item m-mobile-hide" th:classappend="${n==1} ? active"><i class="active m-margin-tb-menu icon home"></i>首页</a>
            <a href="#" th:href="@{/types/-1}" class="m-item item m-mobile-hide" th:classappend="${n==2} ? active"><i class="m-margin-tb-menu folder open outline icon"></i>分类</a>
            <a href="#" th:href="@{/tags/-1}" class="m-item item m-mobile-hide" th:classappend="${n==3} ? active"><i class="m-margin-tb-menu edit outline icon"></i>标签</a>
            <a href="#" th:href="@{/archives}" class="m-item item m-mobile-hide" th:classappend="${n==4} ? active"><i class="m-margin-tb-menu edit outline icon"></i>归档</a>
            <a href="#" th:href="@{/about}" class="m-item item m-mobile-hide" th:classappend="${n==5} ? active"><i class="m-margin-tb-menu meh outline icon"></i>关于我</a>
            <div class="right m-item item m-mobile-hide">
                <form action="#" name="search" th:action="@{/search}" target="_blank" method="post" >
                    <!--transparent透明-->
                    <div class="ui icon transparent input" style="border: 1px black !important;">
                        <input type="text" name="query"  placeholder="点击搜索...." th:value="${query}">
                        <i class="search icon link" onclick="document.forms['search'].submit()"></i>
                    </div>
                </form>
            </div>

        </div>
    </div>
    <!--三条杠 更多按钮-->
    <a href="#" class="ui icon button menu toggle m-right-top bg white-font m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>







<div class="right m-item item m-mobile-hide" th:fragment="search">
    <form action="#" name="search" th:action="@{/search}" target="_blank" method="post" >
        <!--transparent透明-->
        <div class="ui icon inverted transparent input">
            <input type="text" name="query" placeholder="Search...." th:value="${query}">
            <i class="search icon link" onclick="document.forms['search'].submit()"></i>
        </div>
    </form>
</div>



    <div class="m-padded-d-mass m-container-small">
        <div class="ui error message">
            <div class="ui container">
                <h2>404</h2>
                <p>对不起，你访问的资源不存在。</p>
            </div>
        </div>
    </div>


<footer class="ui segment inverted vertical segment m-padded-d-mass bg" th:fragment="footer">
    <!--container容器 center aligned居中-->
    <div class="ui center aligned container bg">
        <!--grid会把一些布局分为12列  devided加线 -->
        <div class="ui inverted divided grid bg">
            <div class="three wide column m-opacity-mini m-text-space m-text-thin m-text-lined">
                <div class="ui inverted link list bg">
                    <img src="../static/image/wo.jpg" th:src="@{/image/wo.jpg}" alt="" class="ui rounded image" style="width:110px">

                </div>
            </div>
            <div class="three wide column m-opacity-mini m-text-space m-text-thin m-text-lined">
                <h4 class="ui inverted header">最新博客</h4>

                <div id="newblog-container">

                    <div class="ui inverted link list " th:fragment="newblogList">
                        <a href="#" class="item" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" th:each="blog : ${newblogs}" th:text="${blog.title}">会飞的羊</a>
                        <!--/*-->
                        <a href="#" class="item">会飞的羊</a>
                        <a href="#" class="item">会飞的羊</a>
                        <!--*/-->
                    </div>

                </div>

            </div>
            <div class="three wide column m-opacity-mini m-text-space m-text-thin m-text-lined">
                <h4 class="ui inverted header">联系我吖</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">QQ:822021336</a>
                    <a href="#" class="item" th:text="#{index.email}"><span>邮箱</span>：xihao.luck@qq.com</a>
                    <a href="#" class="item"></a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-opacity-mini m-text-space m-text-thin m-text-lined">最新博客</h4>
                <p class="m-opacity-mini m-text-space m-text-thin m-text-lined">
                    这是我的个人博客，用于记录我在网上收集的文章，自己的代码笔记，和优秀的文案等等。欢迎大家关注！</p>
            </div>
        </div>
        <div class="ui inverted section divider m-opacity-mini m-text-space m-text-thin m-text-lined "></div>
        <p class="m-opacity-mini m-text-space m-text-thin m-text-lined">Copyright © 2021-2022 会飞的羊 </p>
    </div>

</footer>








</body>
</html>